package com.artron.mediaartron.data.entity;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Class description here
 *
 * @author doing
 * @version 1.0.0
 * @since 2017-10-27.
 */

public class OrderData implements Parcelable {

    /**
     * code : 201710271715463030
     * isZeroPaid : 2
     * id : efeb74282c894b59a77cf68c9f52b225
     */

    private String code;
    private int isZeroPaid;
    private String id;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public int getIsZeroPaid() {
        return isZeroPaid;
    }

    public void setIsZeroPaid(int isZeroPaid) {
        this.isZeroPaid = isZeroPaid;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.code);
        dest.writeInt(this.isZeroPaid);
        dest.writeString(this.id);
    }

    public OrderData() {
    }

    protected OrderData(Parcel in) {
        this.code = in.readString();
        this.isZeroPaid = in.readInt();
        this.id = in.readString();
    }

    public static final Parcelable.Creator<OrderData> CREATOR = new Parcelable.Creator<OrderData>() {
        @Override
        public OrderData createFromParcel(Parcel source) {
            return new OrderData(source);
        }

        @Override
        public OrderData[] newArray(int size) {
            return new OrderData[size];
        }
    };
}
